package com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory;

import com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory.dto.BusinessLaboratoryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory.param.BusinessLaboratoryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory.param.BusinessLaboratoryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory.param.BusinessLaboratoryListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.business.crm.laboratory.param.BusinessLaboratoryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * BusinessLaboratoryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/business/laboratory/fallback")
public class BusinessLaboratoryCloudServiceFallback implements BusinessLaboratoryCloudService {

    @Override
    public BusinessLaboratoryListCloudDto list(BusinessLaboratoryListCloudParam param) {
        return new BusinessLaboratoryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(BusinessLaboratoryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(BusinessLaboratoryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(BusinessLaboratoryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
